package com.yufei.infoExtractor.exportor;

import java.util.List;

import java.util.Map;

import com.yufei.infoExtractor.exception.TaskResultExportException;
import com.yufei.infoExtractor.pfw.entity.Entity;
/**
 * created by @author jasstion at 2012-11-8
 */
public interface DataExportor {
	
	/**
	 * @param entityClass
	 * @param destinationFoler
	 * 将集合中的对象转成各种格式的文件然后保存在destinationFoler指定的文件夹
	 * 实际文件物理路径是:AppUtil.getInfoExtractorConfig().getFileSavedDirectory()+destinationFoler+文件名称
	 * @throws TaskResultExportException 
	 */
	void exportData(List<? extends Entity> needSavedList,
			String destinationFoler, Class entityClass) throws TaskResultExportException;

}
